package com.GroupSix.service;

import com.GroupSix.entity.StudentEntity;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface StudentService extends IService<StudentEntity> {

    //增
    Integer add(StudentEntity stu);

    //删（根据学号）
    Integer delete(Integer stuId);

    //改
    Integer update(StudentEntity stu);

    //查
    IPage<StudentEntity> list(StudentEntity studentEntity, Integer pageNo, Integer pageSize);

    //根据学号查询
    StudentEntity getByStudentId(Integer id);

    //根据姓名查询
    StudentEntity getByStudentName(String studentName);

    //学生用户登录
    String login(String stuName,Integer stuId, String stuPwd);

    //学生用户注册
    String signUp(String name, Integer id, String pwd, String stuClass);

}
